package com.dreamsky.life.controller;

import com.jfinal.core.Controller;

public class LifeController extends Controller {

	public void send() {
		String command = getPara("operation");

		Command.LIGHT = command != null ? command : Command.LIGHT;
		String s = Command.LIGHT .equals("open")?"您的灯已经打开!":"您的灯是被关闭了!";
		renderText(s);
	}

	public void get() {
		renderText(Command.LIGHT);
	}

}
